import http from "@/api";
import { Logs } from "@/api/interface/logs";

/**
 * @description 获取列表
 */
export const getLogsList = (params?: Logs.ILogsParams) => {
  return http.Get<Logs.TLogsListResult>("/logger/list", { params: { ...params } });
};

/**
 * @description 获取详情
 * @param {number} id id
 */
export const getLogsDetail = (id: number) => {
  return http.Get<Logs.ILogs>(`/logger/detail?id=${id}`);
};
